package com.zp.self.module.工具.rpc远程访问.forest.controller;

import com.zp.self.module.工具.rpc远程访问.forest.rpcInterface.RpcTestService;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

/**
 * @date ：Created 2022/1/16 22:47
 * @description：接收数据测试
 */
@RestController
@RequestMapping("/sap/opu/odata/SAP")
public class AcceptDataRpcController {
    @Resource
    RpcTestService testServiceA;

    @RequestMapping(value = "/ZEQUI_RC_DATA_SRV/HeaderSet",method = RequestMethod.POST)
    @ResponseStatus(code = HttpStatus.CREATED)
    public Object hi(@RequestBody String body){
        System.out.println(body);
        Map<String,Object> res = new HashMap<>();
        res.put("a","abc");
        res.put("b",123);
        return res;
    }
}
